import request from '@/utils/request'

const prePath = '/device'
//养护模板-分页查询
export function getDeviceMaintenanceTemplateCustomizeListPage(data) {
  return request({
    url:
      prePath +
      '/maintenance/template/deviceMaintenanceTemplate/customizeList/page',
    method: 'post',
    data,
  })
}
//养护模板-新增模板
export function createDeviceMaintenanceTemplate(data) {
  return request({
    url: prePath + '/maintenance/template/deviceMaintenanceTemplate/edit/save',
    method: 'post',
    data,
  })
}
//养护模板-更新一条数据
export function updateDeviceMaintenanceTemplate(data) {
  return request({
    url:
      prePath + '/maintenance/template/deviceMaintenanceTemplate/edit/modify',
    method: 'post',
    data,
  })
}
//养护模板-根据{id}获取一条数据
export function getDeviceMaintenanceTemplateById(id) {
  return request({
    url: prePath + '/maintenance/template/deviceMaintenanceTemplate/' + id,
    method: 'get',
  })
}
//养护模板-批量删除
export function delDeviceMaintenanceTemplate(data) {
  return request({
    url: prePath + '/maintenance/template/deviceMaintenanceTemplate/byDelete',
    method: 'post',
    data,
  })
}
//养护模板-根据ids获取模板明细
export function getDeviceTemplateListByIds(data) {
  return request({
    url: prePath + '/maintenance/template/deviceMaintenanceTemplateProgram/query/list/by/templateIds',
    method: 'post',
    data
  })
}
